import RouterView from "~/components/RouterView";

const StudentHome = () =>
    import("~/view/StudentFilesModule/Home").then(m => m.default || m);
const Student_information = () =>
    import(
        "~/view/StudentFilesModule/StudentBasicInformation/StudentBasicInformation"
        ).then(m => m.default || m);
const Student_Comprehensive = () =>
    import(
        "~/view/StudentFilesModule/StudentsComprehensiveAssessment/StudentsComprehensiveAssessment"
        ).then(m => m.default || m);
const Student_MyClass = () =>
    import(
        "~/view/StudentFilesModule/StudentBasicInformationClass/StudentBasicInformationClass"
        ).then(m => m.default || m);
const Student_Changes = () =>
    import("~/view/StudentFilesModule/StudentStatusChanges/StudentStatusChanges").then(m => m.default || m);
const student_Shift = () =>
    import("~/view/StudentFilesModule/Shift/Shift").then(m => m.default || m);
const students_Day = () =>
    import("~/view/StudentFilesModule/StudentsDay/StudentsDay").then(m => m.default || m);
const Student_Grade = () =>
    import("~/view/StudentFilesModule/StudentBasicInformationGrade/StudentBasicInformationGrade").then(m => m.default || m);
const Student_MyParent = () =>
    import("~/view/StudentFilesModule/MyInformation/MyParentInformationDetail").then(m => m.default || m);
const Student_MyInfo = () =>
    import("~/view/StudentFilesModule/MyInformation/MyInformationDetail").then(m => m.default || m);
/**
 * 学生管理 前缀-Student
 */
export default [
    //首页
    {
        path: "/studentfilesmodule/home",
        name: "StudentHome",
        component: StudentHome,
        authentication: "StudentHome"
    },
    //学生信息相关
    {
        path: "/studentfilesmodule",
        name: "StudentInformationAll",
        authentication: "StudentInformationAll",
        component: RouterView,
        children: [
            //学生信息
            {
                path: "studentbasicinformation",
                name: "StudentInformation",
                component: Student_information,
                authentication: "StudentInformation"
            },
            //学生综合评价
            {
                path: "studentComprehensive",
                name: "StudentComprehensive",
                component: Student_Comprehensive,
                authentication: "StudentComprehensive"
            },
            //学籍异动
            {
                path: "studentChanges",
                name: "studentChanges",
                component: Student_Changes,
                authentication: "studentChanges",
            },
            //调班
            {
                path: "studentShift",
                name: "studentShift",
                component: student_Shift,
                authentication: "studentShift",
            },
            //全校走读生
            {
                path: "studentsDay",
                name: "studentsDay",
                component: students_Day,
                authentication: "studentsDay",
            }
        ]
    },
    //我的学生信息
    {
        path: "/studentfilesmodule",
        name: "studentbasicinMyAll",
        authentication: "studentbasicinMyAll",
        component: RouterView,
        children: [
            //我的班级学生信息
            {
                path: "StudentMyClass",
                name: "StudentMyClass",
                component: Student_MyClass,
                authentication: "StudentMyClass"
            },
            //我的年级学生信息
            {
                path:"StudentGrade",
                name:"StudentGrade",
                component:Student_Grade,
                authentication:"StudentGrade",
            },
            //我的孩子信息
            {
                path:"StudentMyParent",
                name:"StudentMyParent",
                component:Student_MyParent,
                authentication:"StudentMyParent",
            },
            //我的信息
            {
                path:"StudentMyInfo",
                name:"StudentMyInfo",
                component:Student_MyInfo,
                authentication:"StudentMyInfo",
            }
        ]
    }
];
